import Vue from 'vue'
import Router from 'vue-router'
import GoodsList from '../views/GoodsList.vue'
import Cart from '../views/Cart.vue' 
import Address from '../views/Address.vue'
import OrderConfirm from '../views/orderConfirm'
import OrderSuccess from '../views/OrderSuccess'
import Root from '../views/Root'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'GoodsList',
      component:GoodsList
    },
    {
      path:'/cart',
      name:'Cart',
      component:Cart
    },
    {
      path:'/address',
      name:'Address',
      component:Address
    },
    {
      path:'/orderConfirm',
      name:'OrderConfirm',
      component:OrderConfirm
    },
    {
      path:'/orderSuccess',
      name:'OrderSuccess',
      component:OrderSuccess
    },
    {
      path:'/root',
      name:'Root',
      component:Root
    }
  ]
})
